package com.wpam.scrabble.mobile.activities;

import android.bluetooth.BluetoothDevice;

public class ServerInfo {
	private BluetoothDevice device_;
	private boolean serverConfirmed_;
	
	public ServerInfo(BluetoothDevice device, boolean serverConfirmed) {
		this.device_ = device;
		this.serverConfirmed_ = serverConfirmed;
	}

	@Override
	public boolean equals(Object o) {
		try {
			ServerInfo s = (ServerInfo) o;
			return this.device_.equals(s.device_);
		} catch (ClassCastException e) {
			return false;
		}
	}

	public BluetoothDevice getDevice() {
		return device_;
	}

	public String getName() {
		return device_.getName();
	}

	public String getAddress() {
		return device_.getAddress();
	}

	public boolean isServerConfirmed() {
		return serverConfirmed_;
	}

	public void setServerConfirmed(boolean serverConfirmed_) {
		this.serverConfirmed_ = serverConfirmed_;
	}
}
